﻿using System.Configuration;

namespace TSharp.Core.Mvc.XmlRouting
{
    /// <summary>
    ///     忽略的路由
    ///     <para>2010/8/13</para>
    ///     <para>TANGJINGBO</para>
    ///     <para>tangjingbo</para>
    /// </summary>
    internal sealed class IgnoreItem : ConfigurationElement
    {
        /// <summary>
        ///     Gets the URL.忽略的路由url
        /// </summary>
        /// <value>The URL.</value>
        [ConfigurationProperty("url", IsRequired = true, IsKey = true)]
        public string Url
        {
            get { return this["url"].ToString(); }
        }

        /// <summary>
        ///     Gets the constraints.忽略路由url匹配规则（约束）
        /// </summary>
        /// <value>The constraints.</value>
        [ConfigurationProperty("constraints", IsRequired = false)]
        public ConstraintCollection Constraints
        {
            get { return this["constraints"] as ConstraintCollection; }
        }
    }
}